/* 英雄区域样式 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, 
    rgba(10, 10, 10, 1) 0%,
    rgba(0, 40, 60, 1) 50%,
    rgba(10, 10, 10, 1) 100%
  );
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-sphere {
  position: absolute;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: pulse 8s ease-in-out infinite;
}

.gradient-sphere:nth-child(1) {
  top: -30%;
  left: -20%;
  background: radial-gradient(circle at 30% 30%,
    rgba(0, 255, 136, 0.4) 0%,
    rgba(0, 102, 255, 0.2) 50%,
    transparent 100%
  );
  animation-delay: 0s;
}

.gradient-sphere:nth-child(2) {
  top: 20%;
  right: -30%;
  background: radial-gradient(circle at 70% 70%,
    rgba(0, 102, 255, 0.4) 0%,
    rgba(255, 51, 102, 0.2) 50%,
    transparent 100%
  );
  animation-delay: -2s;
}

.gradient-sphere:nth-child(3) {
  bottom: -20%;
  left: 20%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 51, 102, 0.4) 0%,
    rgba(0, 255, 136, 0.2) 50%,
    transparent 100%
  );
  animation-delay: -4s;
}

@keyframes pulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1) translate(2%, 2%);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
}

/* 标题样式 */
.title {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-line.highlight {
  font-size: 5rem;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* 按钮样式 */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

.secondary-btn:hover .btn-icon {
  transform: translateY(5px);
}

/* 特性卡片样式 */
.features {
  position: relative;
  width: 100%;
  background: linear-gradient(to bottom, var(--background-color), #1a1a1a);
  padding: 6rem 0;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
}

.feature-card:hover::before {
  opacity: 0.15;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
}

.feature-card h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.feature-card:hover h3::after {
  width: 80%;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  transition: all 0.3s ease;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.feature-card:hover p {
  color: var(--text-color);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* 浮动元素样式 */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-element {
  position: absolute;
  padding: 1rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  font-weight: bold;
  animation: float 6s ease-in-out infinite;
}

.float-element.html {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.float-element.css {
  top: 40%;
  right: 15%;
  animation-delay: 1s;
}

.float-element.js {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.float-element.vue {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 优化动画性能 */
.gradient-sphere {
  will-change: transform;
  transform: translateZ(0);
}

.float-element {
  will-change: transform;
  transform: translateZ(0);
}

/* 响应式样式 */
@media (max-width: 768px) {
  .title {
    font-size: 3rem;
  }
  
  .title-line.highlight {
    font-size: 3.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .float-element {
    display: none;
  }
} 